html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    
}

main {
    display: flex;
    flex: 1 1 auto;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    padding: 10px 40px;
    max-width: min(calc(100% - 80px),1200px);
    margin:auto;
    background-color: rgb(242, 242, 242);
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin: 0;
}

.top {
    min-width: 300px;
    background-color: #212121; 
    color: white;
    padding: 10px;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    flex-shrink: 0;
}

.top_flex {
    display: flex;
    align-items: center; 
    text-align: center;
}

.top_flex h1 {
    font-size:1.2em;
    line-height:1.3;
    margin:0;
    text-align:center;
    letter-spacing:3px;
}

.top_flex img {
    height:60px; 
    margin-left:20px;
}

.top p {
    font-size:1em;
    margin:0;
    text-align:center;
}

/* --- STYLES POUR LE SOUS-MENU PHOTOS (DROPDOWN) --- */

/* Conteneur principal du menu déroulant */
.dropdown {
    /* Maintient le flux horizontal de la navbar */
    display: inline-block; 
    /* Permet de positionner le sous-menu de manière absolue */
    position: relative; 
    /* Utilise le même padding que les autres liens pour s'intégrer */
    padding: 5px 15px; 
    margin: 0 2px;
}

/* Le bouton 'Photos ▼' */
.dropdown .dropbtn {
    /* Réinitialise les styles du lien de la navbar pour éviter le double padding */
    padding: 0; 
    margin: 0;
}

/* Contenu du sous-menu (les liens d'années) */
.dropdown-content {
    /* Caché par défaut */
    display: none; 
    /* Positionné absolument sous le bouton 'Photos' */
    position: absolute; 
    top: 100%; /* Juste en dessous du bouton parent */
    left: 0;
    z-index: 10; /* Assure qu'il est au-dessus des autres éléments */
    min-width: 180px;
    background-color: #f8f8f8; /* Le même fond que la navbar */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    border-top: none; /* Enlève la ligne de séparation en haut */
}

/* Les liens dans le sous-menu */
.dropdown-content a {
    /* Supprime les marges de la navbar pour les éléments du sous-menu */
    margin: 0; 
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
    display: block; /* Prend toute la largeur disponible */
    font-weight: normal; /* Moins gras que le menu principal si vous le souhaitez */
    transition: background-color 0.2s;
    /* Annule l'effet de soulignement de la navbar pour les sous-liens */
}
.dropdown-content a::after {
    display: none; 
}

/* Soulignement au survol du lien dans le sous-menu */
.dropdown-content a:hover {
    background-color: #e0e0e0;
}

/* Afficher le menu au survol du conteneur parent */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Réajustement de la navbar pour le conteneur dropdown */
/* Pour s'assurer que l'effet de survol de la navbar fonctionne sur le bouton dropdown */
.navbar .dropdown .dropbtn::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Déplacé un peu plus bas que l'original */
    left: 50%;
    width: 0;
    height: 3px;
    background-color: blue;
    transition: left 0.3s ease, width 0.3s ease;
}

.navbar .dropdown:hover .dropbtn::after {
    left: 5%;
    width: 90%;
}




.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    background-color: #f8f8f8;
    color: #000;
    border-bottom: 1px solid #ddd;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    margin: 0 2px;
    transition: none;
}

.navbar a.active {
    color: blue;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: blue;
    transition: left 0.3s ease, right 0.3s ease, width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    left: 5%;
    right: 5%;
    width: 90%;
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 3px;
    background-color: blue;
}

.hero-section {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 10px 0px;
}

.hero-section img {
    display: block;
    border-radius: 10px;
}

.announcements-container {
    margin:20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
}

.images-container {
    width: 100%; 
    max-width: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.images-container:hover {
    transform: scale(1.05);
}

.text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 10px;
    width: 80%;
    max-width: 750px;
    margin: 0 auto;
    font-size: max(calc(0.8em + 0.5vw),18px);
}

.text p {
    margin: 0 auto;
    min-width: 200px;
}

.groupes-contacts {
    display: flex;
    max-width: 90%;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
}

.groupes-contacts h1 {
    display: flex;
    width: auto;
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.groupe {
    display: flex;
    overflow: visible;
    margin-bottom: 10px;
    padding: 10px;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(204, 204, 204);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
}


.card-role {
    display: flex;
    box-sizing: content-box;
    width: 20svw;
    min-width: 119px;
    margin: 0px;
    padding: 10px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(204, 204, 204);
    border-radius: 10px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
}

.card-role.-wfp-hover,
.card-role:hover {
    transform: scale(1.05);
}

.card-membre {
    display: flex;
    box-sizing: content-box;
    width: 20svw;
    min-width: 119px;
    margin-bottom: 0px;
    padding: 10px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(204, 204, 204);
    border-radius: 10px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
}

.card-membre.-wfp-hover,
.card-membre:hover {
    transform: scale(1.05);
}

.card-image {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    margin-left: 10px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    border-radius: 50%;
}

.card-text {
    display: flex;
    overflow-x: auto;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.card-info {
    width: 100%;
    max-width: max-content;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#role {
    color:#005f73;
    font-weight: bold;
    font-size: 1.2em;
}

#nom {
    font-size: 1.1em;
    color: inherit;
}

.groupe-indiv {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    order: 1;
    gap: 10px;
}

.groupe-role {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    order: 1;
    gap: 10px;
}

#chargement {
    font-weight: 800;
}

.card-photo {
    display: flex;
    box-sizing: content-box;
    width: 20svw;
    min-width: 119px;
    margin: 0px;
    padding: 10px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(204, 204, 204);
    border-radius: 10px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
}

#dates-list a.card-photo.photo, #events-list a.card-photo.photo {
    min-width: 300px;
    text-align: center;
}

#folder-list img {
    border-radius: 10px;
}

#folder-list a {
    width:fit-content;
}

.photo-event {
    width: 200px;
    height: 200px;
    border: 1px solid #ccc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px 0px;
}

.groupe-photo {
    display: flex;
    flex-wrap: wrap;
    place-content: stretch center;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 70%;
}

.groupe-photo a h3 {
    font-size: 34px;
    margin: 10px 0;
}

.card-date {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    margin-left: 10px;
    border: 1px solid black;
    border-radius: 50%;
}

.photo {
    text-decoration: none;
}

.image-adaptee {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}   

.card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #005f73;
    text-decoration: wavy;
}

.bouton-retour{
    width: 77%;
}

.bouton-retour button{
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 12px;
    background: #fafafa;
    margin: 10px;
    cursor: pointer;
}

.bouton-retour button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.group-pers-important {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin:0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
    box-sizing: border-box;
}

.group-pers-important h1 {
    font-size: 3.5em; /* Vous pouvez ajuster cette valeur */
    text-align: center;
    margin-top: 20px;
    width: 100%;
}



.group-pers-important h2, .group-pers-important h3  {
    margin: 0;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 600;
}

.pers-important {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.pers-important img {
    box-sizing: border-box;
    vertical-align: middle;
    border-radius: 5px;
    flex: initial;
    width: 40%;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 10px 0px;
}

.pers-important img.right {
    order: 99;
    margin-left: 30px;
}

.pers-important img.left {
    order: 0;
    margin-right: 30px;
}

.pers-important-content {
    flex: 1;
    min-width: 1px;
    margin: 0;
    margin-top: 30px;
    width: 100%

}

.pers-important-text-columns {
    margin-bottom: 0;
    margin-top: 40px;
    display: flow-root;
    position: relative;
    box-sizing: border-box;
    column-count: 2;
    column-gap: 30px;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.pers-important-text-columns::first-letter {
    display: block;
    margin-right: 20px;
    float: left;
    font-size: 2.8em;
    line-height: 1;
    margin-bottom: -2px;
}

.carroussel {
    position: relative;
    display: flex;
    overflow: visible;
    width: max-content;
    height: max-content;
    min-height: 280px;
    min-width: 180px;
    max-height: 100%;
    max-width: 100%;
    padding: 0px;
    justify-content: flex-start;
    align-items: center;
    cursor: grab;
    user-select: none;
    gap: 0px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
}

.carroussel button {
    position: absolute;
    display: flex;
    width: 30px;
    height: 30px;
    padding: 0px;
    opacity: 0.5;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    border: 0;
    cursor: pointer;
    background-color: transparent;
    font-weight: 700;
    text-shadow: rgba(0, 0, 0, 0.4) 0px 2px 3px;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    color: white;
}

.carroussel button:hover {
    opacity: 1;
    transform: scale(1.2);
}

.carroussel button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.carroussel button:disabled:hover {
    transform: none;
}

.button-left {
    left: 10px;
    z-index: 1;
}

.button-right {
    right: 10px;
}

.carroussel-elements {
    display: flex;
    margin-top: 0px;
    margin-left: 0px;
    padding: 10px;
    padding-bottom: 0;
    gap: 10px;
    transition: transform 0.3s ease-out;
    will-change: transform;
    overflow: auto;
    scrollbar-color: DarkGray rgb(242, 242, 242);
}

.card-magazine {
    background-color: transparent;
    text-decoration: none;
}

.card-magazine p {
    margin-top: 10px;
    text-align: center;
    color: black;
}

.card-magazine-image {
    width: 165px;
    height: 230px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-magazine-image img {
    border-radius: 10px;
    width: 165px;
    height: 230px
}

footer {
    background-color: #212121;
    color: #b2b2b2;
    text-align: center;
    padding: 10px;
    flex-shrink: 0;
}

@media screen and (max-width: 479px) {
    .card-role {
        height: 20svh;
    }

    .card-membre {
        height: 20svh;
    }

    .card-image {
        width: 14vw;
        height: auto;
        max-width: 100px;
        margin: 0 10px;
    }

    .card-text {
        padding-left: 5px;
    }

    .carroussel-elements {
        flex-flow: column;
        align-self: flex-start;
    }

    .carroussel button {
        display: none;
    }
}

@media screen and (max-width: 960px) {
    main {
        padding-left: 30px;
        padding-right: 30px;
    }

    .group-pers-important h2, .group-pers-important h3 {
        font-size: 28.9px;
    }

    .pers-important {
        flex-direction: column;
    }

    .pers-important img.right {
        order: 0;
        width: 100%;
        padding-left:0;
        margin-left: 0;
    }
    
    .pers-important img.left {
        width: 100%;
        padding-right:0;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pers-important-text-columns {
        column-count: 1;
    }
}
